/**
 * @file
 * @author dousha
 * @date 2020/11/30.
 */

#ifndef CRYPTSTICK_CONVERT_H
#define CRYPTSTICK_CONVERT_H

#include <stdint.h>

extern uint16_t get_u16(const uint8_t *);

extern uint32_t get_u32(const uint8_t *);

extern uint64_t get_u64(const uint8_t *);

extern void set_u16(uint8_t *, uint16_t);

extern void set_u32(uint8_t *, uint32_t);

extern void set_u64(uint8_t *, uint64_t);

extern char nibble_to_hex(uint8_t);

extern void write_u8(uint8_t *, uint8_t);

extern void write_hex_u8(uint8_t *, uint8_t);

#endif //CRYPTSTICK_CONVERT_H
